package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.WorkflowProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkflowProcessMapper {
    List<WorkflowProcess> selectList(@Param("workflowId") Long workflowId);

    int saveWorkflowProcess(WorkflowProcess workflowProcess);

    WorkflowProcess selectById(Long id);

    int updateById(WorkflowProcess workflowProcess);

    int deleteById(Long id);

    int batchDelete(Long[] ids);

    List<WorkflowProcess> selectByWorkflowIdAndStepOrder(Long workflowId, Integer stepOrder);

    // 校验：根据工艺ID和工序ID查询
    List<WorkflowProcess> selectByWorkflowIdAndProcessId(Long workflowId, Long processId);
}
